﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MenuProject
{
    abstract class MenuItem
    {
        public string Name { get; private set; }

        public MenuItem(string name)
        {
            if (String.IsNullOrWhiteSpace(name))
                throw new ArgumentNullException("Name is empty");
            Name = name;
        }

        public abstract void PrintToConsole();

    }
}
